<template>
  <div class="we_component we_code">
    <div class="nocode" v-if="!data.url">
      <i class="icon icon-erweima"></i>
      <p>请选择二维码</p>
    </div>
    <a v-if="data.url"><img :src="data.url" alt="" style="width: 100%;"></a>
  </div>
</template>
<script>
  export default{
    props: ['data']
  }
</script>
<style lang="scss">
  .we_code{
    .nocode{padding-bottom:10px;text-align:center;line-height:1;color:#ccc;}
    .icon-erweima{font-size:100px;color:#ccc;}
  }
</style>
